package com.xiaoxu.rental.mapper;

import com.xiaoxu.rental.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author xtq
* @description 针对表【permission】的数据库操作Mapper
* @createDate 2024-07-26 08:47:27
* @Entity rental.entity.Permission
*/
public interface PermissionMapper extends BaseMapper<Permission> {
    //查询用户所拥有的权限
    List<Permission> selectPermissionListByUserId(Integer userId);

    List<Permission> selectPermissionListByRoleId(Integer roleId);
}




